package me.lc.superDown.util;

import me.lc.superDown.R;
import me.lc.superDown.core.GameManager;

import com.wiyun.engine.sound.AudioManager;

public class AudioHelper {
	public static void playMusicInGame() {
		// stopMusic();
		// AudioManager.playBackgroundMusic(R.raw.game_music);
	}

	public static void stopMusic() {
		// AudioManager.stopBackgroundMusic();
	}

	public static void click() {
		if (GameManager.instance.isAudioOn) {
			AudioManager.playEffect(R.raw.click);
		}
	}

	public static void finish() {
		if (GameManager.instance.isAudioOn) {
			AudioManager.playEffect(R.raw.finish);
		}
	}

	public static void getCoin() {
		if (GameManager.instance.isAudioOn) {
			AudioManager.playEffect(R.raw.getcoin);
		}
	}

	public static void land() {
		if (GameManager.instance.isAudioOn) {
			AudioManager.playEffect(R.raw.land);
		}
	}

	public static void speedTool() {
		if (GameManager.instance.isAudioOn) {
			AudioManager.playEffect(R.raw.speedtool);
		}
	}

	// public static void toolTimeout() {
	// if (GameManager.instance.isAudioOn) {
	// AudioManager.playEffect(R.raw.tooltimeout);
	// }
	// }
}
